-module(manage_db).
-compile(export_all).
-include_lib("stdlib/include/qlc.hrl").
-include("../../db_structure.hrl").

a([], A) ->
 "<html>"++A++"</html>";
a([H|T], A) ->
 {_, U, P} = H,
 a(T, "user:"++U++"      password:"++P++"<br/>"++A).

show_all_user ('GET', Req) ->
    Users = model_user:getAll(),
    template:render_html(Req, "manage/show_all_user", [{users, Users}]).